Branchwell

PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Geometric / Cathedral / xtramartin (90).milk

1MILKDROP_PRESET_VERSION=201
2PSVERSION=3
3PSVERSION_WARP=3
4PSVERSION_COMP=3
5[preset00]
6fRating=5.000000
7fGammaAdj=1.980
8fDecay=0.500
9fVideoEchoZoom=1.000
10fVideoEchoAlpha=0.500
11nVideoEchoOrientation=3
12nWaveMode=7
13bAdditiveWaves=0
14bWaveDots=0
15bWaveThick=0
16bModWaveAlphaByVolume=0
17bMaximizeWaveColor=0
18bTexWrap=1
19bDarkenCenter=0
20bRedBlueStereo=0
21bBrighten=0
22bDarken=1
23bSolarize=0
24bInvert=0
25fWaveAlpha=0.001
26fWaveScale=0.010
27fWaveSmoothing=0.750
28fWaveParam=0.000
29fModWaveAlphaStart=0.290
30fModWaveAlphaEnd=0.290
31fWarpAnimSpeed=1.459
32fWarpScale=2.007
33fZoomExponent=1.00000
34fShader=0.000
35zoom=0.99990
36rot=0.00000
37cx=0.500
38cy=0.500
39dx=0.00000
40dy=0.00000
41warp=0.01000
42sx=0.99990
43sy=1.00000
44wave_r=0.000
45wave_g=0.000
46wave_b=0.000
47wave_x=0.500
48wave_y=0.830
49ob_size=0.000
50ob_r=0.000
51ob_g=0.000
52ob_b=0.000
53ob_a=1.000
54ib_size=0.260
55ib_r=0.250
56ib_g=0.250
57ib_b=0.250
58ib_a=0.000
59nMotionVectorsX=64.000
60nMotionVectorsY=48.000
61mv_dx=0.000
62mv_dy=0.000
63mv_l=5.000
64mv_r=0.000
65mv_g=0.000
66mv_b=0.000
67mv_a=0.000
68b1n=0.000
69b2n=0.000
70b3n=0.000
71b1x=1.000
72b2x=1.000
73b3x=1.000
74b1ed=0.000
75wavecode_0_enabled=0
76wavecode_0_samples=512
77wavecode_0_sep=0
78wavecode_0_bSpectrum=0
79wavecode_0_bUseDots=0
80wavecode_0_bDrawThick=0
81wavecode_0_bAdditive=0
82wavecode_0_scaling=1.00000
83wavecode_0_smoothing=0.50000
84wavecode_0_r=1.000
85wavecode_0_g=1.000
86wavecode_0_b=1.000
87wavecode_0_a=1.000
88wavecode_1_enabled=0
89wavecode_1_samples=512
90wavecode_1_sep=0
91wavecode_1_bSpectrum=0
92wavecode_1_bUseDots=0
93wavecode_1_bDrawThick=0
94wavecode_1_bAdditive=0
95wavecode_1_scaling=1.00000
96wavecode_1_smoothing=0.50000
97wavecode_1_r=1.000
98wavecode_1_g=1.000
99wavecode_1_b=1.000
100wavecode_1_a=1.000
101wavecode_2_enabled=0
102wavecode_2_samples=512
103wavecode_2_sep=0
104wavecode_2_bSpectrum=0
105wavecode_2_bUseDots=0
106wavecode_2_bDrawThick=0
107wavecode_2_bAdditive=0
108wavecode_2_scaling=1.00000
109wavecode_2_smoothing=0.50000
110wavecode_2_r=1.000
111wavecode_2_g=1.000
112wavecode_2_b=1.000
113wavecode_2_a=1.000
114wavecode_3_enabled=0
115wavecode_3_samples=512
116wavecode_3_sep=0
117wavecode_3_bSpectrum=0
118wavecode_3_bUseDots=0
119wavecode_3_bDrawThick=0
120wavecode_3_bAdditive=0
121wavecode_3_scaling=1.00000
122wavecode_3_smoothing=0.50000
123wavecode_3_r=1.000
124wavecode_3_g=1.000
125wavecode_3_b=1.000
126wavecode_3_a=1.000
127shapecode_0_enabled=0
128shapecode_0_sides=100
129shapecode_0_additive=0
130shapecode_0_thickOutline=0
131shapecode_0_textured=1
132shapecode_0_num_inst=2
133shapecode_0_x=0.500
134shapecode_0_y=0.500
135shapecode_0_rad=0.23297
136shapecode_0_ang=0.00000
137shapecode_0_tex_ang=0.00000
138shapecode_0_tex_zoom=1.00000
139shapecode_0_r=1.000
140shapecode_0_g=1.000
141shapecode_0_b=1.000
142shapecode_0_a=1.000
143shapecode_0_r2=1.000
144shapecode_0_g2=1.000
145shapecode_0_b2=1.000
146shapecode_0_a2=1.000
147shapecode_0_border_r=0.000
148shapecode_0_border_g=0.000
149shapecode_0_border_b=0.000
150shapecode_0_border_a=0.100
151shape_0_per_frame1=x = 0.5+0.38*if(equal(instance,0),1,-1)*sin(time+1.57);
152shape_0_per_frame2=y = 0.5+0.38*if(equal(instance,0),1,-1)*cos(time+1.57);
153shape_0_per_frame3=ang = sin(time);
154shapecode_1_enabled=1
155shapecode_1_sides=100
156shapecode_1_additive=0
157shapecode_1_thickOutline=0
158shapecode_1_textured=1
159shapecode_1_num_inst=4
160shapecode_1_x=0.500
161shapecode_1_y=0.500
162shapecode_1_rad=0.23297
163shapecode_1_ang=0.00000
164shapecode_1_tex_ang=0.00000
165shapecode_1_tex_zoom=1.00000
166shapecode_1_r=1.000
167shapecode_1_g=1.000
168shapecode_1_b=1.000
169shapecode_1_a=1.000
170shapecode_1_r2=1.000
171shapecode_1_g2=1.000
172shapecode_1_b2=1.000
173shapecode_1_a2=1.000
174shapecode_1_border_r=0.000
175shapecode_1_border_g=0.000
176shapecode_1_border_b=0.000
177shapecode_1_border_a=0.100
178shape_1_per_frame1=x = 0.5+0.38*if(equal(instance,0),1,if(equal(instance,2),1,-1))*sin(time+if(above(instance,1),1.57,0));
179shape_1_per_frame2=y = 0.5+0.38*if(equal(instance,0),1,if(equal(instance,2),1,-1))*cos(time+if(above(instance,1),1.57,0));
180shape_1_per_frame3=ang = sin(time);
181shapecode_2_enabled=1
182shapecode_2_sides=100
183shapecode_2_additive=0
184shapecode_2_thickOutline=0
185shapecode_2_textured=1
186shapecode_2_num_inst=1
187shapecode_2_x=0.500
188shapecode_2_y=0.500
189shapecode_2_rad=0.58776
190shapecode_2_ang=0.00000
191shapecode_2_tex_ang=0.00000
192shapecode_2_tex_zoom=1.26973
193shapecode_2_r=1.000
194shapecode_2_g=1.000
195shapecode_2_b=1.000
196shapecode_2_a=1.000
197shapecode_2_r2=1.000
198shapecode_2_g2=1.000
199shapecode_2_b2=1.000
200shapecode_2_a2=1.000
201shapecode_2_border_r=1.000
202shapecode_2_border_g=1.000
203shapecode_2_border_b=1.000
204shapecode_2_border_a=0.000
205shape_2_per_frame1=ang = ang+sin(time);
206shapecode_3_enabled=0
207shapecode_3_sides=4
208shapecode_3_additive=0
209shapecode_3_thickOutline=0
210shapecode_3_textured=0
211shapecode_3_num_inst=1
212shapecode_3_x=0.500
213shapecode_3_y=0.500
214shapecode_3_rad=0.10000
215shapecode_3_ang=0.00000
216shapecode_3_tex_ang=0.00000
217shapecode_3_tex_zoom=1.00000
218shapecode_3_r=1.000
219shapecode_3_g=0.000
220shapecode_3_b=0.000
221shapecode_3_a=1.000
222shapecode_3_r2=0.000
223shapecode_3_g2=1.000
224shapecode_3_b2=0.000
225shapecode_3_a2=0.000
226shapecode_3_border_r=1.000
227shapecode_3_border_g=1.000
228shapecode_3_border_b=1.000
229shapecode_3_border_a=0.100
230per_frame_init_1=proxy = 3; pos_z = proxy*100;
231per_frame_init_2=movz = 0;
232per_frame_init_3=avg = 0;
233per_frame_init_4=avg_= 2;
234per_frame_1=dec_m = pow (0.95, 30/fps); dec_s = pow (0.99, 30/fps);
235per_frame_2=
236per_frame_3=beat = bass+mid+treb;
237per_frame_4=avg = avg*dec_s + beat*(1-dec_s);
238per_frame_5=avg_ = avg_*dec_s + avg*(1-dec_s);
239per_frame_6=is_beat = above(beat, 4+avg+peak) * above (time, t0+1);
240per_frame_7=t0 = is_beat*time + (1-is_beat)*t0;
241per_frame_8=peak = is_beat * beat + (1-is_beat)*peak*dec_m;
242per_frame_9=index = (index + is_beat) %16;
243per_frame_10=//index2 = (index2 + is_beat*bnot(index))%8;
244per_frame_11=q20 = avg_/3;
245per_frame_12=q22 = max(0,peak-.0)+.01;
246per_frame_13=q24 = is_beat;
247per_frame_14=q27 = index +1;
248per_frame_15=
249per_frame_16=push = (avg-2.5)/3;
250per_frame_17=ax = -(xang + min(max(push,-.7),.7))/3; //Divisor: 1/Frequenz
251per_frame_18=
252per_frame_19=ax = if (below(ax,0),ax*2,ax);
253per_frame_20=vx = vx *(1-1/fps)+ ax/fps; //1/fps: Daempfung
254per_frame_21=xang = xang + vx/fps;
255per_frame_22=// WINKEL
256per_frame_23=zang = 0;
257per_frame_24=yang = - .5*sin(time/16);
258per_frame_25=//yang = .7;
259per_frame_26=
260per_frame_27=//BEWEGUNG
261per_frame_28=movz= if(above(avg_/3,1.2),1,movz);
262per_frame_29=movz = if(below(avg_/3,.9),-1,movz);
263per_frame_30=proxy = proxy + movz/fps/4;
264per_frame_31=proxy = min(max(proxy,1.1),4);
265per_frame_32=proxy = 4-3*abs(sin(time/24));
266per_frame_33=pos_z = dec_s * pos_z + (1-dec_s)*proxy*100;
267per_frame_34=
268per_frame_35=trelx = trelx + .1*sin(time/11)/fps*yang;
269per_frame_36=q5 = trelx;
270per_frame_37=trely = trely + xang*.2/fps; q6 = trely;
271per_frame_38=//q6 = time*.03;
272per_frame_39=vleaf = vleaf + (avg/64)/fps;
273per_frame_40=q29 = vleaf;
274per_frame_41=lrot = lrot + bass_att/fps*.2;
275per_frame_42=q32 = lrot;
276per_frame_43=
277per_frame_44=ox = 0; oy = 0; oz = pos_z;
278per_frame_45=mx = ox*cos(zang) - oy*sin(zang);
279per_frame_46=my = ox*sin(zang) + oy*cos(zang);
280per_frame_47=ox = mx;oy = my;
281per_frame_48=mx = ox*cos(yang) + oz*sin(yang);
282per_frame_49=mz = - ox*sin(yang) + oz*cos(yang);
283per_frame_50=ox = mx;oz = mz;
284per_frame_51=my = oy*cos(xang) - oz*sin(xang);
285per_frame_52=mz = oy*sin(xang) + oz*cos(xang);
286per_frame_53=oy = my;oz = mz;
287per_frame_54=q11=ox; q12 = oy; q13 = oz; //Position
288per_frame_55=
289per_frame_56=//Vektor x nach rechts
290per_frame_57=ox = 1; oy = 0; oz = 0;
291per_frame_58=mx = ox*cos(zang) - oy*sin(zang);
292per_frame_59=my = ox*sin(zang) + oy*cos(zang);
293per_frame_60=ox = mx;oy = my;
294per_frame_61=mx = ox*cos(yang) + oz*sin(yang);
295per_frame_62=mz = - ox*sin(yang) + oz*cos(yang);
296per_frame_63=ox = mx;oz = mz;
297per_frame_64=my = oy*cos(xang) - oz*sin(xang);
298per_frame_65=mz = oy*sin(xang) + oz*cos(xang);
299per_frame_66=oy = my;oz = mz;
300per_frame_67=q14=ox; q15 = oy; q16 = oz;
301per_frame_68=
302per_frame_69=
303per_frame_70=//Vektor z nach hinten
304per_frame_71=ox = 0; oy = 0; oz = 1;;
305per_frame_72=
306per_frame_73=mx = ox*cos(zang) - oy*sin(zang);
307per_frame_74=my = ox*sin(zang) + oy*cos(zang);
308per_frame_75=ox = mx;oy = my;
309per_frame_76=mx = ox*cos(yang) + oz*sin(yang);
310per_frame_77=mz = - ox*sin(yang) + oz*cos(yang);
311per_frame_78=ox = mx;oz = mz;
312per_frame_79=my = oy*cos(xang) - oz*sin(xang);
313per_frame_80=mz = oy*sin(xang) + oz*cos(xang);
314per_frame_81=oy = my;
315per_frame_82=oz = mz;
316per_frame_83=q17=ox; q18 = oy; q19 = oz;
317per_frame_84=
318per_frame_85=q31 = 20/pos_z;
319per_frame_86=q32 = pos_z;
320per_pixel_1=zoom = .995;
321warp_1=`sampler sampler_pw_noise_lq;
322warp_2=`
323warp_3=`float3 ret1, stone, window;
324warp_4=`float2 rsk, uv1, uv2, uv3, uv4, dz1, Kugel1;
325warp_5=`float mask1, rad1, rill;
326warp_6=`static float iter6 = (rand_preset.z > .5);
327warp_7=`shader_body {
328warp_8=`
329warp_9=`float dx = abs(.5-frac(uv.x*88))*0;
330warp_10=`float dy = abs(.5-frac(uv.y*88))*1;
331warp_11=`uv += float2(dx,dy)*.0;
332warp_12=`
333warp_13=`uv1 = float2(uv.x-.5,uv.y-0.5);
334warp_14=`
335warp_15=`float2 uv3 = uv1;float dist = 43+18*iter6;
336warp_16=`uv3 = dist * uv1;
337warp_17=`
338warp_18=`float ky = saturate(.04-uv3.y/40);
339warp_19=`float k1 = uv3.x*.8 ;;
340warp_20=`
341warp_21=`k1 = k1 - sign (k1)*14; //Verdoppelung
342warp_22=`k1 = k1 - sign (k1)*11; //Verdoppelung
343warp_23=`k1 = k1 - sign (k1)*(2+rand_preset.y*8); //Verdoppelung
344warp_24=`
345warp_25=`int n = 1 ;
346warp_26=`float delta = .1;
347warp_27=`while (n <= 4+2*iter6)
348warp_28=`{
349warp_29=` k1 += (-16*n*sign(k1))*ky*ky;
350warp_30=` ky = saturate (ky - delta);
351warp_31=` delta *= 1;
352warp_32=` n++;
353warp_33=`}
354warp_34=`float k2 = k1;
355warp_35=`k1 = clamp(k1,-1.6,1.6);
356warp_36=`stone = saturate(cos(k1) -.1);
357warp_37=`
358warp_38=`rill = (rand_preset-.3)*saturate(cos(8*k2))*stone;
359warp_39=`
360warp_40=`ret = max(stone/2, GetPixel((uv-.5)*2
361warp_41=`+float2(-q15,q16))*(.66)) -.2*rill - 0.01;
362warp_42=`}
363comp_1=`sampler sampler_pw_noise_lq;
364comp_2=`static float quality = 2, depth = q31;
365comp_3=`float3 neu, rsl, rsl2, rsl3, ret1, screen3, back,lcol, sky;
366comp_4=`float2 uv0, uv1, uv2, uv4;
367comp_5=`float lprof,lprof2,m,n,dist,cloud,mask, shadow, mask1,lmask,leaves,clshadow,gmask;
368comp_6=`static float lav_gnd = 0;
369comp_7=`static const float anz = 3;
370comp_8=`static float2 mov = float2 (q5,q6);
371comp_9=`
372comp_10=`static float3 t = float3(q14,q15,q16);
373comp_11=`static float3 s = float3(q17,q18,q19);
374comp_12=`static float3 ts = -cross(s,t);
375comp_13=`static float3 pos = float3 (q11,q12,q13);
376comp_14=`
377comp_15=`float3 project (float3 pos, float dist) {
378comp_16=` float z;
379comp_17=` z = dist/mul(cross(ts,-t),screen3) *(1-lav_gnd);
380comp_18=` gmask = (z <= 0)*(z >= -8);
381comp_19=` return gmask* float3(mul(float2x3(ts,t),cross(pos,screen3))*z/256,-z);}
382comp_20=`
383comp_21=`float3 lproject (float3 pos, float dist) {
384comp_22=` float z;
385comp_23=` z = dist/mul(cross(ts,-t),screen3) *(1-lav_gnd) ;
386comp_24=` return (z<=0)*(z>=-4)* float3(mul(float2x3(ts,t),cross(pos,screen3))*z/256,-z);}
387comp_25=`
388comp_26=`float noise2 (float2 uvi)
389comp_27=`{return 1*(tex2D (sampler_noise_hq,uvi) + 0*tex2D (sampler_noise_hq,uvi*4)/4);}
390comp_28=`
391comp_29=`shader_body {uv0 = uv;
392comp_30=`screen3 = float3 ((uv-.5)*aspect.xy,1);//wirkt wie zoom / Tele ###
393comp_31=`
394comp_32=`//*****leaves**********
395comp_33=`lav_gnd = tex2D (sampler_noise_hq,uv)*.03;
396comp_34=`rsl3 = lproject(pos,1.5) + float3 (q29,-time/118,0) + float3 (mov,0);
397comp_35=`float glmask = tex2D (sampler_pw_noise_lq,rsl3.x*.004) >= .3;
398comp_36=`uv2 = rsl3.xy*16;
399comp_37=`uv2.y += tex2D (sampler_pw_noise_lq,uv2.x/256).g*-2*time;
400comp_38=`float3 noise = 8*tex2D (sampler_pw_noise_lq,uv2/256);
401comp_39=`lmask = noise.g >= 7.; lmask *= glmask;
402comp_40=`uv2 = frac(uv2);
403comp_41=`float lside = sin((noise.b-8)*2*time+q32);
404comp_42=`float lsize = 3*(noise.g-6);
405comp_43=`leaves = lmask*lsize *(3+frac(4*uv2.x/uv2.y))/4
406comp_44=` -26*length((uv2-.5)*float2(1,2/lside));
407comp_45=`lcol = (1+tex2D (sampler_noise_hq,uv2/8+noise))* float3 (.8+lside/4,.5,0);;
408comp_46=`lcol -= tex2D (sampler_noise_hq,uv2+noise).r*.25;
409comp_47=`leaves = saturate(leaves);
410comp_48=`
411comp_49=`//**** main part ******
412comp_50=`lav_gnd = 0;
413comp_51=`rsl = project (pos, 1)+float3 (time*.006,.6,0);
414comp_52=`back = saturate(1-rsl.y);
415comp_53=`cloud = saturate(noise2(rsl.xy/8*float2(1,4))-.4)*saturate(.5+back);
416comp_54=`back *= float3(.7,.77,.96);
417comp_55=`sky = lerp(back,2*cloud,cloud/2);
418comp_56=`//sky = back;
419comp_57=`//sky = back + cloud/4;
420comp_58=`ret1 = sky;
421comp_59=`lprof2 = 0;
422comp_60=`for (n=anz; n >= 1; n--) {
423comp_61=` dist = (n); lav_gnd = 0; mov += n/anz;
424comp_62=` for (m=1; m <= quality; m++) {
425comp_63=` rsl = project (pos, dist)+float3 (mov,0);
426comp_64=` lprof = .5-lum(GetBlur1(frac(rsl.xy))); //mittelwert null !#
427comp_65=` lav_gnd -= lprof/quality*depth/rsl.z;
428comp_66=` }
429comp_67=`
430comp_68=` rsl = project (pos, dist)+float3 (mov,0) ;
431comp_69=` rsl2 = project (pos, dist)+float3 (0,0,0);
432comp_70=` int first = (n==1);
433comp_71=` if (!first) {shadow = saturate(4*GetPixel(frac(rsl2.xy))) ;}
434comp_72=` neu = GetPixel(frac(rsl.xy));
435comp_73=` float dista = length(rsl.xy)*.001;
436comp_74=` mask = saturate(16/dist*lum(neu))*gmask;
437comp_75=` neu *= 1-.5*lum(tex2D (sampler_noise_lq,rsl.xy*4));
438comp_76=` clshadow = clamp (q20*1.6-noise2(rsl.xy*float2(.02,.1)+float2(time*.01,0)),.2,1);
439comp_77=` neu *= (1-shadow*.5* (!first))*clshadow;
440comp_78=`
441comp_79=`// neu *= saturate(noise2(rsl.xy/16+time*.01)+q20-.5+0*(rsl.z)) ; // Abdunkelung hinten
442comp_80=` neu = lerp(back, neu, saturate(5-rsl.z)); //Nebel
443comp_81=` ret1 = lerp(ret1,neu,mask) ;
444comp_82=`}
445comp_83=`
446comp_84=`rsl = project (pos, dist)+float3 (mov+lprof/2,0);
447comp_85=`
448comp_86=`ret1 = lerp(ret1,leaves*(1-shadow/2)*clshadow*lcol, leaves*.5*saturate(!mask));
449comp_87=`//ret1 *= clshadow;
450comp_88=`//ret = 1-exp(-ret1*2+.1) ;
451comp_89=`ret = ret1;
452comp_90=`
453comp_91=`//ret = GetPixel(uv0);
454comp_92=`}
455comp_93=`
456comp_94=`written by martin
457comp_95=`END